<?php
namespace app\python\controller;  // 必须继承于app 第二个是具体的应用名  例 t5/note/tp
use think\Controller;
use think\Request;
use think\Db;
use think\config;

class Pythonoffline extends Controller
{
/*
*https://www.hyhthjk.com.cn/note.php/python/Pythonoffline/index
*线下python笔记的服务器
*获得数据
*/

public function index(){
// echo'https://www.hyhthjk.com.cn/note.php/python/Pythonoffline/index';
$superior = input('get.superior','0');
$where['superior'] = $superior;
// $data = Db::table('note_list_python')->where($where)->column('content,id');
$data = Db::table('note_list_python')->where($where)->select();
 //  dump($data);    
	return json($data);
}



}